package com.zzyl.mapper;

import com.zzyl.entity.Reservation;
import com.zzyl.vo.ReservationVo;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface CustomerReservationMapper {
    Integer getCancelledCount(Long id, LocalDate today);

    List<ReservationVo> getCountByTime(LocalDate localDate);

    void addReservation(Reservation reservation);

    List<ReservationVo> selectByPage(Long userId,Integer status);

    void cancleReservation(Long id);

    void updateStatus(LocalDateTime time);

}
